package com.slkj.shilixiaoyuanapp.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;
import java.util.List;

/**
 * Created  on 2018-08-17
 *
 * @author 唐开阔
 * @describe
 */
public class ToolMeetingDetailEntity implements  Parcelable,ToolEntityState{

    /**
     * place : 喜欢像你这么
     * title : 议题22
     * applyDate : 2018-08-17 10:13:02
     * datetime : 2018-08-17 10:12:46
     * body : 。
     * teacherName : [{"uId":2,"uName":"任浩","headImg":"/images/school3/head/1533869873951.png"},{"uId":4,"uName":"邓平平","headImg":"/images/school3/head/1533869873955.png"}]
     * auditor : [{"uId":2,"uName":"任浩","headImg":"/images/school3/head/1533869873951.png"}]
     */

    private String place;
    private String title;
    private String applyDate;
    private String datetime;
    private int state;
    private String body;
    private String refute;
    private boolean urge;
    private List<PeopleEntity> teacherName;
    private List<PeopleEntity> auditor;
    private int myState;

    public int getMyState() {
        return myState;
    }

    public void setMyState(int myState) {
        this.myState = myState;
    }

    protected ToolMeetingDetailEntity(Parcel in) {
        myState = in.readInt();
        place = in.readString();
        title = in.readString();
        applyDate = in.readString();
        datetime = in.readString();
        state = in.readInt();
        body = in.readString();
        refute = in.readString();
        urge = in.readByte() != 0;
        teacherName = in.createTypedArrayList(PeopleEntity.CREATOR);
        auditor = in.createTypedArrayList(PeopleEntity.CREATOR);
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(myState);
        dest.writeString(place);
        dest.writeString(title);
        dest.writeString(applyDate);
        dest.writeString(datetime);
        dest.writeInt(state);
        dest.writeString(body);
        dest.writeString(refute);
        dest.writeByte((byte) (urge ? 1 : 0));
        dest.writeTypedList(teacherName);
        dest.writeTypedList(auditor);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<ToolMeetingDetailEntity> CREATOR = new Creator<ToolMeetingDetailEntity>() {
        @Override
        public ToolMeetingDetailEntity createFromParcel(Parcel in) {
            return new ToolMeetingDetailEntity(in);
        }

        @Override
        public ToolMeetingDetailEntity[] newArray(int size) {
            return new ToolMeetingDetailEntity[size];
        }
    };

    public boolean isUrge() {
        return urge;
    }

    public void setUrge(boolean urge) {
        this.urge = urge;
    }

    public String getRefute() {
        return refute;
    }

    public void setRefute(String refute) {
        this.refute = refute;
    }
    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getApplyDate() {
        return applyDate;
    }

    public void setApplyDate(String applyDate) {
        this.applyDate = applyDate;
    }

    public String getDatetime() {
        return datetime;
    }

    public void setDatetime(String datetime) {
        this.datetime = datetime;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public List<PeopleEntity> getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(List<PeopleEntity> teacherName) {
        this.teacherName = teacherName;
    }

    public List<PeopleEntity> getAuditor() {
        return auditor;
    }

    public void setAuditor(List<PeopleEntity> auditor) {
        this.auditor = auditor;
    }

}
